package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 共享家 样板间 样板间bean
 *
 * @author fengzhen
 * @version v1.0, 2018/4/23
 */
public class PtListBean implements Parcelable{
    /**
     * name : 轻奢风格
     * id : 3
     * surfaceUrl : http://p35r91t1w.bkt.clouddn.com/FkRrPBBg6HqNO1EVXs0_h08GQ00f
     * nop : 0
     */

    private String name;
    private int id;
    private String surfaceUrl;
    private int nop;

    protected PtListBean(Parcel in) {
        name = in.readString();
        id = in.readInt();
        surfaceUrl = in.readString();
        nop = in.readInt();
    }

    public static final Creator<PtListBean> CREATOR = new Creator<PtListBean>() {
        @Override
        public PtListBean createFromParcel(Parcel in) {
            return new PtListBean(in);
        }

        @Override
        public PtListBean[] newArray(int size) {
            return new PtListBean[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSurfaceUrl() {
        return surfaceUrl;
    }

    public void setSurfaceUrl(String surfaceUrl) {
        this.surfaceUrl = surfaceUrl;
    }

    public int getNop() {
        return nop;
    }

    public void setNop(int nop) {
        this.nop = nop;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeInt(id);
        dest.writeString(surfaceUrl);
        dest.writeInt(nop);
    }
}
